package com.wx.service;

import com.wx.entity.User;
import org.springframework.stereotype.Service;

/**
 * Created by Max on 2018/4/14.
 */
@Service("userService")
public class UserService {
    /**
     * 进行登录操作
     * @param username
     * @param password
     * @return
     */
    public User doLogin(String username, String password){
        //模拟登录成功
        User user = new User();
        user.setUserId(1);
        user.setUsername("Max");
        return user;
    }
}
